/**
 * 统一管理项目中用到的provider
 */
import React from 'react'
/** Web3ReactProvider 提供连接钱包的provider */
import { Web3ReactProvider } from '@web3-react/core'
import { getLibrary } from 'utils'
import { Provider } from 'react-redux'
import { store } from 'state'
const Providers = ({ children }: { children: React.ReactNode }) => {
    return (
        <Provider store={store}>
            <Web3ReactProvider getLibrary={getLibrary}>
                {children}
            </Web3ReactProvider>
        </Provider>
    )
}

export default Providers